Call the AssignDIB method to assign the DIB of the current buffer (ProcessImageID property) to a receiver and delete the DIB within the ImagXpress® control. The receiver could be a variable, a different control, or another ImagXpress control. The receiver is responsible for freeing the DIB by issuing a GlobalFree on the DIB Handle. If the receiver is an ImagXpress control, there is no need to issue the GlobalFree, as ImagXpress does this for you.
![]() |
When AssignDIB is called, the DIB is deleted from ImagXpress, but the image buffer remains. To free up memory associated with the buffer, you need to delete the buffer. |